Update the CSS docs for the demise of define-color
authorMatthias Clasen <mclasen@redhat.com>
Mon, 7 Nov 2016 19:49:46 +0000 (14:49 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 7 Nov 2016 19:49:46 +0000 (14:49 -0500)
docs/reference/gtk/css-overview.xml
docs/reference/gtk/css-properties.xml

index 6afa20a6fe27aa4717bb3dacac0e8c536801da79..0fe389115070282124bb46f0fbb9e4c29186a430 100644 (file)
@@ -552,37 +552,11 @@ checkbutton:indeterminate {
       GTK+ adds several additional ways to specify colors.
     </para>
 
-<literallayout><code>〈gtk color〉 = 〈symbolic color〉 | 〈color expression〉| 〈win32 color〉</code>
+<literallayout><code>〈gtk color〉 = 〈color expression〉| 〈win32 color〉</code>
 </literallayout>
 
     <para>
-      The first is a reference to a color defined via a @define-color rule.
-      The syntax for @define-color rules is as follows:
-    </para>
-
-<literallayout><code>〈define color rule〉 = @define-color 〈name〉 〈color〉</code>
-</literallayout>
-
-    <para>
-      To refer to the color defined by a @define-color rule,
-      use the name from the rule, prefixed with @.
-    </para>
-
-<literallayout><code>〈symbolic color〉 = @〈name〉</code>
-</literallayout>
-
-    <example><title>An example for defining colors</title>
-      <programlisting><![CDATA[
-@define-color bg_color #f9a039;
-
-* {
-background-color: @bg_color;
-}
-]]></programlisting>
-    </example>
-
-    <para>
-      GTK+ also allows to form color expressions, which can be nested and
+      GTK+ allows to form color expressions, which can be nested and
       provide a rich language to define colors which are derived from a
       set of base colors.
     </para>
index 1f9a662a7d33a17a9e2a481dc11c6b6565c351dd..9ab0c4bb4678feedde13e910cc4d8dec554dff98 100644 (file)
@@ -480,9 +480,7 @@ We use <literallayout> for syntax productions, and each line is put in a <code>
       <para>
         -gtk-icon-palette defines a color palette for recoloring symbolic
         icons. The recognized names for colors in symbolic icons are error,
-        warning and success. The default palette maps these three names to
-        symbolic colors with the names @error_color, @warning_color and
-        @error_color.
+        warning and success.
       </para>
 
       <table pgwide="1">